from rfun import *
from bag  import Bag

def rceg() :
  print "\nbasic..............:"; rc([
      Bag("rx1",[1,1,1,1,1,1,1,1]),
      Bag("rx2",[2,2,2,2,2,2,2,2])])
  print "\nstandard...........:"; rc([
      Bag("rx1",[0.34, 0.49, 0.51, 0.6]),
      Bag("rx2",[0.6,  0.7,  0.8,  0.9]),
      Bag("rx3",[0.6,  0.7,  0.8,  0.9]),
      Bag("rx4",[0.1,  0.2,  0.3,  0.4])])
  print "\nall the same.......:"; rc([
      Bag("rx1",[101, 100, 99, 101,  99]), 
      Bag("rx2",[101, 100, 99, 101, 100]),
      Bag("rx3",[101, 100, 99, 101,  99]),
      Bag("rx4",[101, 100, 99, 101, 100]),
      Bag("rx5",[101, 100, 99, 101,  99]),
      Bag("rx6",[101, 100, 99, 101, 100])])
  print "\ntwo large seperated:"; rc([
      Bag("rx1",[101, 100,  99, 101,  99]),
      Bag("rx2",[101, 100, 199, 101, 100]),
      Bag("rx3",[101, 100, 199, 101, 199]),
      Bag("rx4",[401, 400, 499, 401, 400]),
      Bag("rx5",[401, 400, 499, 401, 499]),
      Bag("rx6",[401, 400, 409, 401, 400])])
  print "\nvery small bags....:";rc([
      Bag("rx1",[1]),
      Bag("rx2",[2]),
      Bag("rx3",[3]),
      Bag("rx4",[1000])])
  
if __name__ == "__main__" : rceg()
